package com.zb.common.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zb.common.po.enums.UserStatus;
import com.zb.common.po.model.User;
import com.zb.common.po.query.UserQuery;

public interface UserMapper {
    public List<User> selectUserList(@Param("query") UserQuery userQuery);

    public int selectUserCount(@Param("query") UserQuery userQuery);

    public List<User> selectUserListWidthPwd(@Param("query") UserQuery userQuery);

    public void inserUser(User user);

    public void updateUser(User user);

    public void deleteUser(@Param("userIds") Integer[] userIds);

    public void updateUserStatus(@Param("userIds") Integer[] userIds,
            @Param("userStatus") UserStatus userStatus);

    public int selectUserCountUseRoles(List<String> roleId);
}
